
def leftOfTheLine(x0,y0,x1,y1,x2,y2):
    return (x1 - x0) * (y2 - y0) - (x2 - x0) * (y1 - y0)>0
def onTheLineSegmentLine(x0,y0,x1,y1,x2,y2):
    return (x1 - x0) * (y2 - y0) - (x2 - x0) * (y1 - y0)==0
def onTheSameLine(x0,y0,x1,y1,x2,y2):
    return (x1 - x0) * (y2 - y0) - (x2 - x0) * (y1 - y0)<0

def main():
    x0, y0 = eval(input("请输入p0坐标："))
    x1, y1 = eval(input("请输入p1坐标："))
    x2, y2 = eval(input("请输入p2坐标："))

    print("p2在p0到p1的", "线上" if onTheLineSegmentLine(x0,y0,x1,y1,x2,y2) else "左边" if leftOfTheLine(x0,y0,x1,y1,x2,y2) else "右边")
main()

